/* threadLoadTest.c
 *		This test-case proves that a large computation intensive program can run.
 *		Expected Result:  Programs should run till end.
 *		Actual Result: Programs runs correclty. It ends when integer overflow is observed. And exits with negatve status.
 *		
 *		CAUTION: Takes too long to execute.
 */

#include "syscall.h"


void loadTest() {
	int i = 1;
	
	while(i > 0) {
		/* quit on integer overflow */
		i++ ;
	}
	
	Exit(i)  ;
}

void main()
{
	int i;
	
	Fork((void*)loadTest) ;
	
	Exit(0) ;
}
